#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>

int main()
{
	double p1, p2, p3, p4, p5;
	p1 = 1000 * (1 + 5 * 0.03);
	p2 = (1000 * (1 + 2 * 0.021)) * (1 + 3 * 0.0275);
	p3 = (1000 * (1 + 3 * 0.0275)) * (1 + 2 * 0.021);
	p4 = 1000 * pow(1 + 0.015, 5);
	p5 = 1000 * pow(1 + 0.0035 / 4, 20);
	printf("%.3f\n%.3f\n%.3f\n%.3f\n%.3f", p1 - 1000, p2 - 1000, p3 - 1000, p4 - 1000, p5 - 1000);
	return 0;
}